﻿<div class="tab-pane" id="bill">
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h1 class="page-header">白露流水账</h1>
             <h6><button type="button" class="btn btn-success btn-xs" data-toggle="modal" data-target="#additem"><span class="glyphicon glyphicon-plus-sign"></span> 添加单据</button></h6>
            
             <div class="modal fade" id="additem" tabindex="-1" role="dialog" aria-labelledby="additem" aria-hidden="true">
                <div class="modal-dialog">
                 <div class="modal-content">
                  <div class="modal-header">
                   <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                   <h4 class="modal-title" id="additem"><span class="glyphicon glyphicon-plus-sign"></span> 添加白露流水账</h4>
                  </div>
                  <div class="modal-body">
                   <form class="form-horizontal" role="form">
                    <div class="form-group">
                     <label for="inputPassword3" class="col-sm-2 control-label"></label>
                     <div class="col-sm-10">
                      <div class="input-group">
                       <div class="input-group-addon">
                        <span class="glyphicon glyphicon-time"></span>
                       </div>
                       <input type="Texi" class="form-control" id="item-time" placeholder="时间"  value=" <?php echo date('Ymd',time()); ?>">
                      </div>
                     </div>
                    </div>
                    <div class="form-group">
                     <label for="inputPassword3" class="col-sm-2 control-label"></label>
                     <div class="col-sm-10">
                      <div class="input-group">
                       <div class="input-group-addon">
                        <span class="glyphicon glyphicon-shopping-cart"></span>
                       </div>
                       <input type="Texi" class="form-control" id="item" placeholder="商品">
                      </div>
                     </div>
                    </div>
                    <div class="form-group">
                     <label for="inputPassword3" class="col-sm-2 control-label"></label>
                     <div class="col-sm-10">
                      <div class="input-group">
                       <div class="input-group-addon">
                        <span class="glyphicon glyphicon-usd"></span>
                       </div>
                       <input type="Texi" class="form-control" id="item-price" placeholder="价格">
                      </div>
                     </div>
                    </div>
                    <div class="form-group">
                     <label for="inputPassword3" class="col-sm-2 control-label"></label>
                     <div class="col-sm-10">
                      <div class="input-group">
                       <div class="input-group-addon">
                        <span class="glyphicon glyphicon-user"></span>
                       </div>
                       <input type="Texi" class="form-control" id="item-name" placeholder="经手人" disabled="disabled" value="<?php echo $_SESSION['username']; ?>">
                      </div>
                     </div>
                    </div>
                   </form>
                  </div>
                  <div class="modal-footer">
                   <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭</button>
                   <button type="button" class="btn btn-primary" onclick="item_add();"><span class="glyphicon glyphicon-ok"></span> 确定</button>
                  </div>
                 </div>
                </div>
               </div>

            <div class="row placeholders">
                <div class="row">
                    <h3 class="col-md-12">
                        <div class="col-md-4 query_num"><span><span class="glyphicon glyphicon-shopping-cart" style="color:orange;" aria-hidden="true"></span> 今日消费<strong class="num" id="item-time-num"> <?php num('item_bailu','time',date('Ymd',time())); ?> </strong>单</span></div>
                        <div class="col-md-4 query_num"><span><span class="glyphicon glyphicon-ok-sign" style="color:green;" aria-hidden="true"></span> 已确认<strong class="num" id="item-ok-num"> <?php num('item_bailu','start','1'); ?> </strong>单</span></div>
                        <div class="col-md-4 query_num"><span><span class="glyphicon glyphicon-remove-sign" style="color:red;" aria-hidden="true"></span> 已删除<strong class="num" id="item-call-num"> <?php num('item_bailu','start','2'); ?> </strong>单</span></div>
                    </h3>
                </div>
                  
            </div>
        <h2 class="sub-header">
            <button class="btn btn-danger" type="button">
              未入账 <span class="badge" id="item-no-num"><?php num('item_bailu','start','0'); ?></span> <span class="glyphicon glyphicon-th-list"  aria-hidden="true"></span>
            </button>
        </h2>
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead>
                        <tr class="alert alert-info">
                            <th>编号</th>
                            <th>时间</th>
                            <th>商品</th>
                            <th>价格</th>
                            <th>经手人</th>
                            <th>状态</th>
                            <th>执行</th>
                        </tr>
                    </thead>
                    <tbody id="item-info">
                           <?php item_query(); ?>
                    </tbody>
                 </table>
            </div>
    </div>
</div>
